import config from '../../../assets/js/conf/config'
import { request } from '../../../assets/js/utils/request';

//获取雷达产品数据
export function getRadarData(params) {
    return request(config.baseUrl+"/FJSW/api/rest/radar/data/radarpic?startTime="+params.startTime+"&endTime="+params.endTime);
}

//获取台风产品数据
export function getTpProducts(id){
    return request(config.baseUrl+"/FJSW/api/rest/typhoon/moniroute?typhoon_id="+id);
}

//获取台风列表数据
export function getTyphoons(){
    return request(config.baseUrl+"/FJSW/api/rest/typhoon/tylist");
}

//获取台风地图实时数据
export function getTyphoonMapData(id){
    return request(config.baseUrl+"/FJSW/api/rest/typhoon/moniroute/timedata?typhoon_id="+id);
}

//获取卫星数据
export function getSateData(params){
    return request(config.baseUrl+"/FJSW/api/rest/satellite/data/satellitelist?starttime="+params.startTime+'&endtime='+
    params.endTime);
}

//获取卫星实况产品数据
export function getClassifyData(params){
    return request(config.baseUrl+"/FJSW/api/rest/satellite/data/satelliteproduct?starttime="+params.startTime+'&endtime='+
    params.endTime+"&satetype="+params.type);
}

//获取云图数据
export function getCloudData(params){
    return request(config.baseUrl+"/FJSW/api/rest/cloud/data/cloud?starttime="+params.startTime+'&endtime='+params.endTime);
}
